package com.bstek.entity;

import lombok.Data;

import java.util.Objects;

/**
 * <p>
 * 听力音频表
 * </p>
 *
 * @author gehongbin
 * @since 2021-09-13
 */
@Data
public class ItemAudioEntity extends BaseEntity {


    private String itemId;

    private String qsId;

    private String audioId;

    private String url;

    private String audioName;

    private String location;

    private Integer locIdx;

    private Integer gIdx;

    private String audioText;

    private String translate;

    private Integer audioStatus;

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof ItemAudioEntity)) {
            return false;
        }
        ItemAudioEntity that = (ItemAudioEntity) o;
        return getItemId().equals(that.getItemId()) && getAudioId().equals(that.getAudioId());
    }

    @Override
    public int hashCode() {
        return Objects.hash(getItemId(), getAudioId());
    }
}
